<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="_fragments :: head(~{::title})">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>总览</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.css">
    <link rel="stylesheet" href="../static/css/me.css" />
</head>
<body class="archives-bg">
    <!-- 导航 -->
    <nav th:replace="_fragments::menu(4)"  class="ui inverted attached segment m-shadow-small">

    </nav>

    <!-- 中间 -->
    <div class="m-container-small m-padded-tb-big">
        <div class="ui container">
            <div class="ui top attached padded segment">
                <div class="ui middle aligned two column grid">
                    <div class="column">
                        <h3 class="ui teal header">总览</h3>
                    </div>
                    <div class=" right aligned column">
                        共 <h3 class="ui orange header m-inline-block" th:text="${blogs.size()}">111</h3> 篇博客
                    </div>
                </div>
            </div>
        </div>

        <h2 class="ui center aligned header">2020</h2>
        <div class="ui fluid vertical menu">
            <a href="#" th:each="blog : ${blogs}" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank" class="item">
                <span>
                    <i class="mini teal circle icon"></i><span th:text="${blog.title}"></span>
                    <div class="ui teal basic left pointing label m-padded-mini" th:text="${#temporals.format(blog.updateTime, 'yyyy-MM-dd HH:mm')}">9月03日</div>
                </span>
                <div class="ui orange basic left pointing label m-padded-mini" th:if="${blog.flag == '转载'}">转载</div>
                <div class="ui teal basic left pointing label m-padded-mini" th:if="${blog.flag == '原创'}">原创</div>
                <div class="ui blue basic left pointing label m-padded-mini" th:if="${blog.flag == '翻译'}">翻译</div>
            </a>
        </div>

    </div>

    <br>
    <br>
    <br>
    <br>
    <br>
    <br>

    <!-- 底部 -->
    <footer th:replace="_fragments::footer" class="ui inverted vertical segment m-padded-tb-massive">

    </footer>

    <script src="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
    <script>
        $('.menu.toggle').click(function () {
            $('.m-item').toggleClass('m-mobile-hide');
        });
    </script>
</body>
</html>